import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Calendar;

public class testStaticDemo {
    @Test
    public void boy2(){
        ApplicationContext context = new ClassPathXmlApplicationContext("application.xml");

        Calendar calendar1 = (Calendar) context.getBean("calendar1");

        System.out.println(calendar1.getTime());


    }
}
